from tests import sign_up, sign_in, index

if __name__ == '__main__':
    # 注册
    signup = sign_up.SignUpTest()
    signup.signup_to_signin()
    signup.signup_fail_test()
    signup.signup_suc_test()
    #登录
    signin = sign_in.SignInTest()
    signin.signin_to_signup()
    signin.signin_fail_test()
    signin.signin_suc_test()
    #主页测试
    index_page = index.IndexTest()
    index_page.test_access_index_without_login()
    index_page.switch_section()
    index_page.read_post()
    index_page.add_post()
    index_page.del_post()

    index_page.driver.quit()

